import java.util.Scanner;

import Book.BookList;
import User.author ;
import User.normal;
import User.user;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-01-14
 * TIME:15:31
 */
public class Main {
    public static void main(String[] args) {
        List<List<Integer>> list=new MyArrryList<Number>();

    }
    public static user log() {
        System.out.println("请输入你的姓名");
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        System.out.println("请选择你的身份  1  管理员   2  普通用户");
        int choice;
        while (true){
            choice=scanner.nextInt();
            if (choice== 1) {
                return new author(str);
            }
            else if (choice == 2) {
                return new normal(str);
            }
            else{
                System.out.println("请重新选择");

            }
        }
    }
    public static void main1(String[] args) {
        BookList bookList = new BookList();
        user user=log();
        while (true){
            int ret=user.menu();
            user.Dooperation(ret,bookList);

        }
    }








}
